package com.ming_za.odupdaterserver.core.sqlite.mapper;

import com.ming_za.odupdaterserver.core.sqlite.domain.AdminAccount;

import java.util.List;

/**
* @author 28365
* @description 针对表【admin_account】的数据库操作Mapper
* @createDate 2025-01-09 17:36:35
* @Entity com.ming_za.odupdaterserver.core.sqlite.domain.AdminAccount
*/
public interface AdminAccountMapper {

    int deleteByPrimaryKey(Long id);

    int insert(AdminAccount record);

    int insertSelective(AdminAccount record);

    AdminAccount selectByPrimaryKey(Long account);

    int updateByPrimaryKeySelective(AdminAccount record);

    int updateByPrimaryKey(AdminAccount record);

    //=============================

    List<AdminAccount> selectAll();

    int setPassword(Long account, String password);

    int setTokenKey(Long account, byte[] tokenKey);

    int setLevel(Long account, int level);

    int login(Long account,byte[] tokenKey, String loginIp, long loginTime);

    int setLastIp(Long account, String lastIp);

}
